import axios from "axios";

import User from "./user";

const API = {
    User
};

(window.location.port == 8000 && axios.interceptors.request.use(function(config) {
    config.url = "/api/" + config.url;
    return config;
}, function(error) {
    return Promise.reject(error);
}));

export default API;